<?php

global $paged;
if(empty($paged)) $paged = 1;

global $post;
$args = array('category' => 4,
        'posts_per_page'  => 3,
        'paged'           => $paged,
        'orderby'         => 'post_date',
        'order'           => 'DEC',);

$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); ?>


    <div class="new">
        <div class="title-news">
            <a href="<?php the_permalink(); ?>"><h1><?php the_title(); ?></h1></a>
            <span class="date"><?php the_date('d-m-Y'); ?></span>
        </div>

        <div class="text-news">
            <?php the_post_thumbnail();?>
            <p>

                <?php the_content(); ?>
            </p>

        </div>

        <div class="footer-news">
            <a href="<?php the_permalink(); ?>" class="btn-more">+ ver mais +</a>
        </div>
    </div>


<?php endforeach; ?>

<?php kriesi_pagination(); ?>


